package com.projrct;

import javax.swing.*;

public class ATMTest {
    public static void main(String[] args) {
        ATM a =new ATM();
        a.login();
        while (true) {
            String item = JOptionPane.showInputDialog(null, "选择你要进行的项目：\n" +
                    "1-信息查询\n2-存钱\n3-取钱\n4-修改密码\n5-退出");
            switch (item) {
                case "1":
                    a.getInform();
                    break;
                case "2":
                    a.save();
                    break;
                case "3":
                    a.getMoney();
                    break;
                case "4":
                    a.pwdChange();
                    break;
                case "5":
                    System.out.println("收好卡片");
                    System.exit(0);
            }
        }
    }
}
